package leecode.easy;

import org.junit.Test;

/**
 * @Author: xieZW
 * @Date: 2022/1/22 12:47
 */
public class Index49 {


    @Test
    public void groupAnagrams() {

        double x = 0.4;
        int n = 0;
        double result = x;
        if (n == 0) {
            result = 1;
            System.out.println("result = " + result);
            return;
        }
        for (int i = 1; i < Math.abs(n); i++) {
            result = result * x;
        }
        if (n < 0) {
            result = 1 / result;
        }
        System.out.println("result = " + result);
    }
}
